package com.zero.prototype.concrete;


import lombok.AllArgsConstructor;
import lombok.Data;

@Data
@AllArgsConstructor
public class DigitalMonster implements Cloneable{
    private String name;
    private String color;
    private Integer attack;
    private Integer defense;
    @Override
    public Object clone() throws CloneNotSupportedException {
        System.out.println("具体原型复制成功");
        return super.clone();
    }
}
